//
//  UIFont+Ext.swift
//  ESVpn
//
//  Created by nkl on 2023/6/28.
//

import Foundation
import UIKit

extension UILabel {
    /// 快速创建方法
    /// - Parameters:
    ///   - text: 内容
    ///   - font: 字体
    ///   - color: 颜色
    /// - Returns: instance
    public static func simpleLabel(text: String = "", font: UIFont = .systemFont14, color: UIColor = .black, align: NSTextAlignment = .left) -> UILabel {
        let label = UILabel()
        label.text = text
        label.font = font
        label.textColor = color
        label.textAlignment = align
        return label
    }
}

extension UIFont {
    public class var systemFont8: UIFont { UIFont.systemFont(ofSize: 8) }
    public class var boldSystemFont8: UIFont { UIFont.boldSystemFont(ofSize: 8) }

    public class var systemFont9: UIFont { UIFont.systemFont(ofSize: 9) }
    public class var boldSystemFont9: UIFont { UIFont.boldSystemFont(ofSize: 9) }

    public class var systemFont10: UIFont { UIFont.systemFont(ofSize: 10) }
    public class var boldSystemFont10: UIFont { UIFont.boldSystemFont(ofSize: 10) }

    public class var systemFont11: UIFont { UIFont.systemFont(ofSize: 11) }
    public class var boldSystemFont11: UIFont { UIFont.boldSystemFont(ofSize: 11) }

    public class var systemFont12: UIFont { UIFont.systemFont(ofSize: 12) }
    public class var boldSystemFont12: UIFont { UIFont.boldSystemFont(ofSize: 12) }

    public class var systemFont13: UIFont { UIFont.systemFont(ofSize: 13) }
    public class var boldSystemFont13: UIFont { UIFont.boldSystemFont(ofSize: 13) }

    public class var systemFont14: UIFont { UIFont.systemFont(ofSize: 14) }
    public class var boldSystemFont14: UIFont { UIFont.boldSystemFont(ofSize: 14) }

    public class var systemFont15: UIFont { UIFont.systemFont(ofSize: 15) }
    public class var boldSystemFont15: UIFont { UIFont.boldSystemFont(ofSize: 15) }

    public class var systemFont16: UIFont { UIFont.systemFont(ofSize: 16) }
    public class var boldSystemFont16: UIFont { UIFont.boldSystemFont(ofSize: 16) }

    public class var systemFont17: UIFont { UIFont.systemFont(ofSize: 17) }
    public class var boldSystemFont17: UIFont { UIFont.boldSystemFont(ofSize: 17) }

    public class var systemFont18: UIFont { UIFont.systemFont(ofSize: 18) }
    public class var boldSystemFont18: UIFont { UIFont.boldSystemFont(ofSize: 18) }

    public class var systemFont20: UIFont { UIFont.systemFont(ofSize: 20) }
    public class var boldSystemFont20: UIFont { UIFont.boldSystemFont(ofSize: 20) }

    public class var systemFont22: UIFont { UIFont.systemFont(ofSize: 22) }
    public class var boldSystemFont22: UIFont { UIFont.boldSystemFont(ofSize: 22) }

    public class var systemFont24: UIFont { UIFont.systemFont(ofSize: 24) }
    public class var boldSystemFont24: UIFont { UIFont.boldSystemFont(ofSize: 24) }

    public class var systemFont28: UIFont { UIFont.systemFont(ofSize: 28) }
    public class var boldSystemFont28: UIFont { UIFont.boldSystemFont(ofSize: 28) }

    public class var systemFont30: UIFont { UIFont.systemFont(ofSize: 30) }
    public class var boldSystemFont30: UIFont { UIFont.boldSystemFont(ofSize: 30) }

    public class var systemFont36: UIFont { UIFont.systemFont(ofSize: 36) }
    public class var boldSystemFont36: UIFont { UIFont.boldSystemFont(ofSize: 36) }

    public class var systemFont40: UIFont { UIFont.systemFont(ofSize: 40) }
    public class var boldSystemFont40: UIFont { UIFont.boldSystemFont(ofSize: 40) }
}
